bitkeeper revision 1.1389.1.60 (4284eff8xPCiJXQdVwPYSYL7MEB5zA)
authorsmh22@firebug.cl.cam.ac.uk <smh22@firebug.cl.cam.ac.uk>
Fri, 13 May 2005 18:20:40 +0000 (18:20 +0000)
committersmh22@firebug.cl.cam.ac.uk <smh22@firebug.cl.cam.ac.uk>
Fri, 13 May 2005 18:20:40 +0000 (18:20 +0000)
fix calls to xc_domain_getinfo()

Signed-off-by: Steven Hand <steven@xensource.com>
tools/libxc/xc_core.c
tools/libxc/xc_linux_save.c

index 2d6b7d0fa2b697c275e6bf5b20dc7cf20403ae06..8439d13119ff70f1077b36917cbb6182de06d230 100644 (file)
@@ -48,7 +48,7 @@ xc_domain_dumpcore(int xc_handle,
                goto error_out;
        }
        
-       if (xc_domain_getinfo(xc_handle, domid, 1, &info)) {
+       if (xc_domain_getinfo(xc_handle, domid, 1, &info) != 1) {
                PERROR("Could not get info for domain");
                goto error_out;
        }
index 17000d668e84f83cd921e68d9be4831d20aaaef0..7c7415e831098c62cd8db0ee77927bd05d1d47c0 100644 (file)
@@ -333,9 +333,9 @@ int suspend_and_state(int xc_handle, XcIOContext *ioctxt,
 
 retry:
 
-    if ( xc_domain_getinfo(xc_handle, ioctxt->domain, 1, info) )
+    if ( xc_domain_getinfo(xc_handle, ioctxt->domain, 1, info) != 1)
     {
-       xcio_error(ioctxt, "Could not get full domain info");
+       xcio_error(ioctxt, "Could not get domain info");
        return -1;
     }
 
@@ -447,9 +447,9 @@ int xc_linux_save(int xc_handle, XcIOContext *ioctxt)
         return 1;
     }
     
-    if ( xc_domain_getinfo(xc_handle, domid, 1, &info) )
+    if ( xc_domain_getinfo(xc_handle, domid, 1, &info) != 1)
     {
-        xcio_error(ioctxt, "Could not get full domain info");
+        xcio_error(ioctxt, "Could not get domain info");
         goto out;
     }
     if ( xc_domain_get_vcpu_context( xc_handle, domid, /* FIXME */ 0,